package com.zhao.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>feign接口</p>
 * <p>创建时间：2021/02/23/17:48</p>
 *
 * @author ZhangZhao
 * @version 1.0
 */
@FeignClient("nacos-provider")
public interface FeignService {
    /**
     * description: getUserInfoList <br>
     * version: 1.0 <br>
     * date: 21.5.20 1:51 <br>
     * author: Zhao <br>
     * @return java.lang.String
     */
    @RequestMapping(value = "/user/getUserInfoList",method = RequestMethod.GET)
    String getUserInfoList();

    /**
     * description: startDispatch <br>
     * version: 1.0 <br>
     * date: 21.8.12 1:48 <br>
     * author: Zhao <br>
     * @param dispatchId
     * @return java.lang.String
     */
    @RequestMapping(value = "/user/startDispatch",method = RequestMethod.GET)
    String startDispatch(@RequestParam("dispatchId") String dispatchId,@RequestParam("time") String time);

    /**
     * description: stopDispatch <br>
     * version: 1.0 <br>
     * date: 21.8.12 0:54 <br>
     * author: Zhao <br>
     * @param dispatchId
     * @return java.lang.String
     */
    @RequestMapping(value = "/user/stopDispatch",method = RequestMethod.GET)
    String stopDispatch(@RequestParam("dispatchId") String dispatchId);

}
